package com.seaboxdata.jt809.packet;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * @Author: dfjx
 * @Date 2020/7/11 11:14
 * @Version 1.0
 * @Describe:上报报警信息消息体
 **/
public class JT809Packet0x1402 extends JT809BasePacket {
    /** 车牌号 21字节*/
    private String vehicleNo;
    /** 车辆颜色 1字节*/
    private byte vehicleColor;
    /** 子业务类型标识 2字节*/
    private short dataType;
    /** 后续数据长度*/
    private int dataLength;
    /** 报警信息来源
     *  0x01 车终端
     *  0x02 企业监控平台
     *  0x03 政府监管平台
     *  0x09 其他
     */
    private byte warnSrc;
    /** 报警类型*/
    private short warnType;
    /** 报警时间*/
    private LocalDateTime warnTime;
    /** 信息ID*/
    private int infoId;
    /** 信息长度*/
    private int infoLength;
    /** 报警信息内容*/
    private String infoContent;

    @Override
    public byte[] getMsgBodyByteArr() {
        return new byte[0];
    }

    public String getVehicleNo() {
        return vehicleNo;
    }

    public void setVehicleNo(String vehicleNo) {
        this.vehicleNo = vehicleNo;
    }

    public byte getVehicleColor() {
        return vehicleColor;
    }

    public void setVehicleColor(byte vehicleColor) {
        this.vehicleColor = vehicleColor;
    }

    public short getDataType() {
        return dataType;
    }

    public void setDataType(short dataType) {
        this.dataType = dataType;
    }

    public int getDataLength() {
        return dataLength;
    }

    public void setDataLength(int dataLength) {
        this.dataLength = dataLength;
    }

    public byte getWarnSrc() {
        return warnSrc;
    }

    public void setWarnSrc(byte warnSrc) {
        this.warnSrc = warnSrc;
    }

    public short getWarnType() {
        return warnType;
    }

    public void setWarnType(short warnType) {
        this.warnType = warnType;
    }

    public LocalDateTime getWarnTime() {
        return warnTime;
    }

    public void setWarnTime(LocalDateTime warnTime) {
        this.warnTime = warnTime;
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    public int getInfoLength() {
        return infoLength;
    }

    public void setInfoLength(int infoLength) {
        this.infoLength = infoLength;
    }

    public String getInfoContent() {
        return infoContent;
    }

    public void setInfoContent(String infoContent) {
        this.infoContent = infoContent;
    }
    @Override
    public String toString(){
        return "JT809Pcaket0x1400{"+
                "vehicleNo='"+vehicleNo+"'"+
                ",vehicleColor='"+vehicleColor+"'"+
                ",dataType='"+dataType+"'"+
                ",dataLength='"+dataLength+"'"+
                ",warnSrc='"+warnSrc+"'"+
                ",warnType="+warnType+"'"+
                ",warnTime="+warnTime+"'"+
                ",infoId="+infoId+"'"+
                ",infoLength="+infoLength+"'"+
                ",infoContent="+infoContent+"'"+
                super.toString() +
                '}';


    }
}
